package cn.qihua.service;

import java.util.List;

import cn.qihua.dao.ISysUserDAO;
import cn.qihua.model.SysUser;

public interface IUserService {

	public abstract SysUser login(String loginName, String passWord);

	public abstract Boolean register(SysUser user);

	public abstract SysUser findById(Integer id);

	public abstract boolean del(Integer id);

	public abstract Boolean update(SysUser transientInstance);

	public abstract List<SysUser> findAll();

	public abstract List<SysUser> findByProperty(String propertyName,
			Object value);

	public abstract List<SysUser> findByLocked(Boolean locked);

	public abstract boolean changeLocked(int id, Boolean value);

	public abstract void setSysUserDAO(ISysUserDAO sysUserDAO);

	public abstract SysUser findByUsername(String username);

	public abstract Boolean changePassword(int userId,String oldPassword, String newPassword);

}